package com.crm.system.service.contractManager;

import com.alibaba.fastjson.JSONObject;
import com.crm.common.model.DhPageInfo;
import com.crm.model.entity.contractManager.CustomerContract;
import com.crm.model.entity.finishOrderProduct.FinishOrderProduct;
import com.crm.model.entity.orderManager.CustomerProductOrderDetail;
import com.crm.model.entity.productManager.CustomerMemberProduct;
import com.crm.model.qo.contractManager.CustomerContractAddQO;
import com.crm.model.qo.contractManager.UpdateContractAddQO;
import com.crm.model.vo.contractReviewManager.UpdateContractVO;
import com.crm.model.vo.customerContractManager.ContractLastThreeMonthVO;

import java.util.List;

/**
 * @author luojie
 * @date 2021/9/22 15:25
 */
public interface UpgradeContractService {

    DhPageInfo<FinishOrderProduct> selectOldContractProductByContractId(String contractId, Integer pageIndex, Integer pageSize);

    List<CustomerMemberProduct> selectUpgradeMemberProductList(String contractId, String productName,String  whetherRenew);

    Boolean addUpgradeContract(UpdateContractAddQO updateContractAddQO);

    UpdateContractVO getUpgradeContractDetail(String contractId);

    List<ContractLastThreeMonthVO> getLastThreeMonthsContractList();
}
